package com.capsulode.excel.sheetreader;

import com.capsulode.excel.exception.RowWrappingFailedException;

public class DefaultSheetReader<R> extends AbstractSheetReader<R> {
    private final RowConsumer<R> consumer;

    public DefaultSheetReader(RowConsumer<R> consumer) {
        this.consumer = consumer;
    }

    @Override
    protected R newRow(int rowNum) throws RowWrappingFailedException {
        return consumer.newRow(rowNum);
    }
}
